package NGUYENVANDOAN.OOP.EXCERCISES.LEVEL02.EX01_OPTIONAL;

public class SquareEntity {
    private double a = 0;

    public SquareEntity(double a) {
        this.a = a;
    }

    public double Area(SquareEntity objSquare) {
        return objSquare.getA() * objSquare.getA();
    }

    public double Perimeter(SquareEntity objSquare) {
        return objSquare.getA() * 4;
    }

    /**
     * @return the a
     */
    public double getA() {
        return a;
    }

    /**
     * @param a the a to set
     */
    public void setA(double a) {
        this.a = a;
    }
}
